import { setSave } from "$api/set"
import { imgs } from "$utils/imgs"

export default {
  data() {
    return {
      icons: imgs,
      addForm: {
        editable: true,
        form: {
          key: "",
          value: "",
        }
      },
    }
  },
  methods: {
    async save() {
      await setSave(this.addForm.form)
      this.appMessage("操作成功", 0)
      setTimeout(() => {
        uni.navigateBack()
      }, 500)
    },
  }
}
